import Son from './Son'
const App = () => {
    // 数据
    const data = [
        {
            name: "html5",
            children: [
                { name: '新增标签' }, { name: '常用标签' }, { name: '虚拟dom' }]
        }, {
            name: 'css3',
            children: [
                { name: '背景颜色' },
                { name: '字体样式' }, 
                { name: '选择器' }, 
                { name: '伪元素' }
            ]
        },
        {
            name: 'JQuery',
            children: [
                { name: 'JQuery是什么' },
                { name: '链式结构' }, 
                { name: '选择器' }, 
                { name: '动画效果' }
            ]
        },
        {
            name: 'vue',
            children: [
                { name: 'vue是什么' },
                { name: '渲染文本' }, 
                { name: '常用ui' }, 
                { name: 'vuex' }
            ]
        },
        {
            name: 'React',
            children: [
                { name: '什么事react' },
                { name: '函数组件与类组件的区别' }, 
                { name: 'HOOK' }, 
                { name: '生命周期' },
                { name: 'this指向问题' }
            ]
        }
    ]
    return <div>
        <Son data={data}></Son>
    </div>
}
export default App